import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
const pinia = createPinia() // pinia实例

// createApp(App).use(router).mount('#app')
const app = createApp(App) //创建Vue根实例
app.use(router) // 挂载路由实例

app.use(pinia) // 挂载pinia实例

app.mount('#app') // 挂载到页面
